﻿/*****************************************************************//**
 * @file    FITKViewAdaptorWirePreview.h
 * @brief   Adaptor for previewing wire data.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-07-02
 *********************************************************************/

#ifndef __FITKVIEWADAPTORWIREPREVIEW_H__
#define __FITKVIEWADAPTORWIREPREVIEW_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for previewing wire.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-07-02
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorWirePreview : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorWirePreview);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-02
         */
        explicit FITKViewAdaptorWirePreview() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-02
         */
        ~FITKViewAdaptorWirePreview() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-02
         */
        bool update() override;

    };

    // Regist wire adaptor
    Register2FITKViewAdaptorFactory(Wire_Preview, Interface::FITKAbaWire, FITKViewAdaptorWirePreview);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORWIREPREVIEW_H__